<template>
    <swiper class="detail-swiper">
        <swiper-item v-for="(item,index) in topImages" :key="index" class="swiper-item">
            <img :src="item" alt="">
        </swiper-item>
    </swiper>
</template>

<script>
import {Swiper,SwiperItem} from "@/components/common/swiper/index";
export default {
    name:"DetailDwiper",
    props:{
        topImages:{
            type:Array,
            default(){
                return []
            }
        }
    },
    components:{
        Swiper,
        SwiperItem
    }
}
</script>

<style>
.swiper-item{
    height: 300px;
    overflow: hidden;
}
.detail-swiper{
    padding-top:45px ;
}
</style>